/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.administration.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.core.entity.BaseEntity;

/**
 * 
 * @author KarimSherif
 */
@Entity
@Table(name = "groups")
public class Groups extends BaseEntity {
	private static final long serialVersionUID = -3097128246051616746L;
	@Id
	@Column(name = "recid", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long recid;

	@Column(name = "name", length = 500)
	private String name;

	@Column(name = "status", length = 500)
	private Long status;

	// \\###############################################################################################################
	public Groups() {
	}

	@Override
	public String toString() {
		return "Group{" + "recid=" + recid + " ,name=" + name
				+ " ,status="
				+ status  + '}';
	}

	// \\###############################################################################################################

	public Long getRecid() {
		return recid;
	}

	public void setRecid(Long groupId) {
		this.recid = groupId;
	}

	public String getName() {
		return name;
	}

	public void setName(String groupName) {
		this.name = groupName;
	}


	public Long getStatus() {
		return status;
	}

	public void setStatus(Long groupStatus) {
		this.status = groupStatus;
	}


//	public void setPrivilege(List<Privilege> privilege) {
//		this.privilege = privilege;
//	}
//
//	public List<Privilege> getPrivilege() {
//		return privilege;
//	}

}
